package com.jiaozi.base.redis;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 操作Redis key的枚举
 */
@Getter
@AllArgsConstructor
public enum RedisEnum {
    /**
     * 用户登录信息
     */
    LOGIN_INFO("JIAOZI:LOGIN_USER_INFO:", 2),

    //账户登录错误次数
    LOGIN_ERROR_ACCOUNT_NUM("JIAOZI:LOGIN_ERROR:ACCOUNT:NUM:", 2),
    //账户登录错误锁定
    LOGIN_ERROR_ACCOUNT_LOCK("JIAOZI:LOGIN_ERROR:ACCOUNT:LOCK:", 2),
    ;
    /**
     * Redis
     * key
     */
    private String key;
    /**
     * Redis
     * Db
     */
    private int dbIndex;
}
